package Marcin_Krajewski;


public class prostokat {
		private double a;
		private double b;
		
		public void ustal_wartosc(double x, double y){
			a = x;
			b = y ;
		}
		public double pole(){
			return a * b;
		}
		public double dlugosc_przekatnej(){
			return Math.sqrt(a*a+b*b);
		}
}



